package com.ft.oa.enums;

/**
 *  知识库项目相关文件夹
 * @author liyansheng
 * @ClassName WarrantyStatus
 * @date 2022-1-14 11:44:31
 */
public enum DirectoryTypeEnum
{
    PRO_PM_CREATE("pro_pm_create","项目文档-项目-立项"),
    PRO_PM_CHANGE("pro_pm_change","项目文档-项目-变更"),
    PRO_PM_ACCEPTANCE("pro_pm_acceptance","项目文档-项目-验收"),
    PRO_PM_WARRANTY("pro_pm_warranty","项目文档-项目-质保"),
    PRO_PM_OTHER("pro_pm_other","项目文档-项目-其他"),
    PRO_RD_NEED("pro_rd_need","项目文档-研发-需求"),
    PRO_RD_CREATE("pro_rd_create","项目文档-研发-立项"),
    PRO_RD_ACCEPTANCE("pro_rd_acceptance","项目文档-研发-验收"),
    PRO_RD_OTHER("pro_rd_other","项目文档-研发-其他"),
    PRO_FD_CONTRACT("pro_fd_contract","项目文档-财务-合同"),
    PRO_FD_BUDGET("pro_fd_budget","项目文档-财务-预算"),
    PRO_FD_RETRUN("pro_fd_return","项目文档-财务-回款"),
    PRO_FD_OTHER("pro_fd_other","项目文档-财务-其他"),
    PRO_FD_BID("pro_fd_bid","项目文档-招投标"),
    PRO_FD_CLUE("pro_fd_clue","项目文档-线索"),

    FILING_ITF_INDUSTRY("filing_itf_industry","归档文件-行业和技术领域-行业领域"),
    FILING_ITF_TFA("filing_itf_tfa","归档文件-行业和技术领域-技术领域"),
    FILING_CUSTOMERFILE("filing_customerFile","归档文件-客户档案"),
    FILING_CUSTOMER_TAIL_FILE("filing_customer_tail_file","归档文件-客户跟踪档案"),
    FILING_SUPPLIER("filing_supplier","归档文件-供应商"),
    FILING_BID_QUALIFICATIONS("filing_bid_qualifications","归档文件-招投标-公司资质"),
    FILING_BID_EXPERIENCE("filing_bid_experience","归档文件-招投标-招投标经验"),
    FILING_BID_MATERIAL("filing_bid_material","归档文件-招投标-经典素材"),
    FILING_BID_PARTNER("filing_bid_partner","归档文件-招投标-合作伙伴"),

    DEV_TASK("dev_task","研发任务文档"),
    DEV_PROBLEM("dev_problem","研发问题文档"),
    DEV_MILESTONE("dev_milestone","研发里程碑文档"),


    DEV_NEED_PRO_CONTRACT("dev_need_pro_contract","研发需求-项目-合同"),
    DEV_NEED_ANALYSE("dev_need_analyse","研发需求-需求分析"),
    DEV_ALLOCATE_ACCEPT("dev_allocate_accept","研发需求已通过验收"),
    ;

    //名称
    private String name;
    //编码
    private String code;
    //构造函数
    DirectoryTypeEnum(String code, String name){
        this.code = code;
        this.name = name;
    }
    public String getCode(){
        return code;
    }

    /**
     * 获取名称
     * @param code
     * @return
     */
    public static String getByCode(String code) {
        for (DirectoryTypeEnum value : DirectoryTypeEnum.values()) {
            if (value.code == code) {
                return value.name;
            }
        }
        return "";
    }
}
